package com.batchaps.classes;

import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;

import com.batchaps.global.GameEngine;
import com.batchaps.menu.GameMenu;

public abstract class KindOfPlay {

	protected GameMenu gameMenu;
	protected boolean isV0;
	protected double V0;
	protected Image imgPower;
	protected boolean isDrawPower;
	/*windlevel 1->4*/
	protected int windLevel;
	protected Image[] imgWinds;
	
	public abstract void PointerPress(int x , int y);
	public abstract void PointerRelease(int x , int y);
	public abstract void Update();
	public void Draw(Graphics g){
		// TODO Auto-generated method stub
		//draw dog power
		if(GameEngine.IsWhoPlay){
			//draw imgPower
			g.drawImage(imgPower, 0 , 0, 0);
			g.setColor(255, 0 , 0);
			g.fillRect(0 , 0, 0, 0);
		}
		//draw cat power
		else{
			//draw imgPower
			g.drawImage(imgPower, 0 , 0, 0);
			g.setColor(255, 0 , 0);
			g.fillRect((int)V0 , 0, 0, 0);
		}
	}
}
